package com.itqf.controller;

import com.itqf.exception.LoginException;
import org.springframework.web.bind.annotation.ControllerAdvice;

import java.util.HashMap;
import java.util.Map;

/**
 * projectName: springmvc2103
 *
 * @author: 赵伟风
 * time: 2021/7/5 17:16
 * description:
 */

@ControllerAdvice
public class ExceptionHandler {


    @org.springframework.web.bind.annotation.ExceptionHandler(LoginException.class)
    public Object handlerLogin(LoginException excetipn){
        Map map = new HashMap();
        map.put("code",0);

        return map;

    }


}
